Skip to content

fix(divider): sync the ios and md line colors with their designs - #31820

Open
thetaPC wants to merge 10 commits into
FW-7047from
FW-6848-theme-syncs
Open

thetaPC wants to merge 10 commits into
FW-7047from
FW-6848-theme-syncs

Conversation

@thetaPC

@thetaPC thetaPC commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Issue number: internal


What is the current behavior?

In the ios and md themes, the divider line is #e0e0e0 in every palette. In the dark palette it shows as a bright gray line, and in the ios theme it doesn't match the iOS 17 separator color.

What is the new behavior?

  • The ios divider line uses the iOS 17 opaque separator color: #c6c6c8 in light and #38383a in dark.
  • The md divider line uses MD2's 12% on-surface color in dark: #2e2e2e. Light stays #e0e0e0.
  • Adds dark palette screenshots for the ios and md dividers.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Known gaps

  • The dark colors are set in each theme's dark palette file, but component values in palette files don't reach the components yet. Until that's fixed, the dark line still shows the light color, and the dark screenshots record it.

How to test

Check Before After What to look for
ios light Basic Basic The line is slightly darker, the iOS 17 separator gray.

@thetaPC
thetaPC added this pull request to stack #31816 November 24, 2026 23:40
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Nov 25, 2026 7:32pm UTC

Request Review

@thetaPC thetaPC changed the title fix(divider): match the item line colors in the ios and md themes fix(divider): sync the ios and md line colors with their designs Nov 25, 2026
@thetaPC
thetaPC marked this pull request as ready for review November 25, 2026 01:06
@thetaPC
thetaPC requested a review from a team as a code owner November 25, 2026 01:06
@thetaPC
thetaPC requested a review from ShaneK November 25, 2026 01:06

@ShaneK ShaneK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, great work!

Comment on lines 5 to 8
/**
* This behavior does not vary across directions.
* The ionic theme has no dark palette color for the line.
*/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/**
* This behavior does not vary across directions.
* The ionic theme has no dark palette color for the line.
*/
/**
* This behavior does not vary across directions.
* The ionic theme has no dark palette color for the line.
*
* TODO: The `IonDivider` colors in the ios and md dark palette files
* don't reach the component yet, so the dark screenshots record the
* light line color. Update them once palette component values apply.
*/

I know the description calls this out, but I think a note in the code would help too. The dark IonDivider colors never reach the divider, so these dark screenshots come out byte-identical with the dark entry removed or set to #ff0000. Once palette component values get wired up they'll start failing and look like a regression, with nothing here saying that's expected. I couldn't find a ticket for that wiring, so I left the number off the TODO. Up to you!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 5c9c343.

Co-authored-by: Shane <561207+ShaneK@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — 554b3cd2 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants